﻿using UnityEngine;
using System.Collections;

public class ignite : SummonerSpell {

	// Use this for initialization
	void Start () {
		initializeStuff();
		initializeSummonerSpellStuff();
		forAllies = false;
		cardName = "Ignite";
		cardDescription = "Target Enemy Champion is dealt 5 damage immediately, and 5 damage at the start of each turn for 3 turns.";
	}
	
	public override void playSpell(Champion champion){
		champion.numTurnsIgnited = 3;
		champion.health-=5;
		champion.checkIfDead(champion);
		base.playSpell(champion);
	}

	public override float evaluateSummonerSpell(Champion champion){
		if(champion.health <= 10){
			return 100;
		}
		else if(champion.health <= 20){
			return 90;
		}
		else
			return 100 - champion.health;
	}
}
